package com.iqismart.shorturl.vo.base;

import java.io.Serializable;

/**
 * @Description
 * @Auther sty
 * @createTime 2019/10/14 02:41
 */
public class PageRequest implements Serializable {
    private static final long serialVersionUID = 8540426815209610426L;
    protected int page = 1;
    protected int pageSize = 20;
    protected String sort = "desc";
    protected String order = "id";

    public PageRequest() {
    }

    public PageRequest(int page, int pageSize) {
        this.page = page;
        this.pageSize = pageSize;
    }

    public PageRequest(int page, int pageSize, String order, String sort) {
        this.page = page;
        this.pageSize = pageSize;
        this.sort = sort;
        this.order = order;
    }

    public String getSort() {
        return this.sort;
    }

    public void setSort(String sort) {
        this.sort = sort;
    }

    public String getOrder() {
        return this.order;
    }

    public void setOrder(String order) {
        this.order = order;
    }

    public int getPage() {
        return this.page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public int getPageSize() {
        return this.pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }
}

